@php
$admin = 0;
$admin = Auth::id();
@endphp
<div class="panel panel-default">
    <div class="list-group">
        <a href="{{ url('/') }}" class="list-group-item @if ($active === 1) active @endif" style="border-top:6px solid #5cb85c">控制面板</a>
        @if ($admin === 1)

            <a href="{{ url('user') }}" class="list-group-item  @if ($active === 2) active @endif" style="border-top:6px solid #5cb85c">管理员</a>
            <a href="{{ url('user/create') }}" class="list-group-item  @if ($active === 3) active @endif">&nbsp;&nbsp;&nbsp;&nbsp;-- 添加 --</a>


        @endif

        <a href="{{ url('person') }}" class="list-group-item  @if ($active === 4) active @endif" style="border-top:6px solid #5cb85c">人员</a>

        <a href="{{ url('person/create') }}" class="list-group-item  @if ($active === 5) active @endif">&nbsp;&nbsp;&nbsp;&nbsp;-- 添加 --</a>
        <a href="{{ url('person/recycle_index') }}" class="list-group-item  @if ($active === 6) active @endif">&nbsp;&nbsp;&nbsp;&nbsp;-- 回收站 --</a>


    </div>
</div>